package com.yzyz.web.controller.visitor.scenic.more;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.AbstractController;

import com.yzyz.bean.region.RegionBean;
import com.yzyz.data.CacheFactory;


/**
 * 查看更多的景区
 * @author david.sun
 * @date 2010-4-26
 */
public class ViewMoreController extends AbstractController {

	@Override
	protected ModelAndView handleRequestInternal(HttpServletRequest request,
			HttpServletResponse response) throws Exception {
		int regionId = Integer.valueOf(request.getParameter("regionId"));
		RegionBean region = CacheFactory.getRegionStore().getRegion(regionId);
		ModelAndView mv = new ModelAndView("/Scenic/More/viewMore.jsp");
		mv.addObject("region", region);
		return mv;
	}

}
